package com.jnu.hc.jnuhcusercms.mapper;

import com.jnu.hc.jnuhcusercms.domain.Setmeal;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SetmealMapper {
    int deleteByPrimaryKey(Integer smId);

    int insert(Setmeal record);

    int insertSelective(Setmeal record);

    Setmeal selectByPrimaryKey(Integer smId);

    int updateByPrimaryKeySelective(Setmeal record);

    int updateByPrimaryKey(Setmeal record);
    @Select("select * from setmeal order by smId")
    public List<Setmeal> listSetmeal();

    //这是专门为OrdersMapper中的listOrders方法做关联查询用的
    @Select("select * from setmeal where smId=#{smId}")
    public Setmeal getSetmealByIdByMapper(Integer smId);

    public Setmeal getSetmealById(Integer smId);

}